package payroll.trans;

import payroll.Employee;
import payroll.PaymentMethod;

public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction{

    public ChangeMethodTransaction(int empId) {
        super(empId);
    }

    @Override
    protected void dochange(Employee e) {
        e.setPaymentMethod(getMethod());
    }
    protected abstract PaymentMethod getMethod();

}
